package cn.com.xuxiaowei.vo;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户
 *
 * @author xuxiaowei
 * @since 0.0.1
 */
@Data
@JacksonXmlRootElement(localName = "S:Envelope")
public class UserVo2 implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 接收不到数据，但也无需关心
     */
    @JacksonXmlProperty(isAttribute = true, localName = "xmlns:S")
    private String soap;

    /**
     * 必须使用：Body
     */
    @JacksonXmlProperty(localName = "Body")
    private GetListResponseObj body;

    @Data
    public static class GetListResponseObj {

        @JacksonXmlProperty(localName = "getListResponse")
        private GetByListId getById;

    }

    @Data
    public static class GetByListId {

        /**
         * 接收不到数据，但也无需关心
         */
        @JacksonXmlProperty(isAttribute = true, localName = "xmlns:ns2")
        private String ns2;

        private Response response;

    }

    @Data
    public static class Response {

        private String id;

        private String password;

        private String username;

    }

}
